home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / children / clrwiz10.arj / INSTALL.FIL < prev    next >
Text File  |  1994-04-01  |  8KB  |  368 lines

  1. ' THE COLOR WIZARD  DOS / WINDOWS Installation Script
  2. ' Copyright 1994, ImagiSOFT, Inc.
  3. ' Version 1.0
  4. ' April 1, 1994
  5.  
  6. ' Note:  This installation script is written for THE FINISHING TOUCH, a
  7. '        professional installation program which is also an ImagiSOFT
  8. '        product.  It is distributed with THE COLOR WIZARD to make
  9. '        installation easier, and to reduce our support calls.
  10.  
  11. '        This script unpacks 6 compressed files (*.PAK) which is a
  12. '        major feature of the program.  For more information about
  13. '        THE FINISHING TOUCH, call ImagiSOFT at (505) 275-1920, or call
  14. '        our personal BBS number with your modem at (505) 275-9697.
  15. '        It will always have the latest shareware version of
  16. '        THE FINISHING TOUCH so you can "try before you buy".
  17.  
  18. BACKGROUND ~0\WIZARD.BIN
  19. TELESCOPE OFF
  20.  
  21. LANGUAGE ENGLISH      ' supports GERMAN, FRENCH, SPANISH, DANISH, and DUTCH
  22.  
  23. BORDER 1
  24. TELESCOPE ON
  25. SHADOW OFF
  26.  
  27. PAUSE 300              ' display screen for 3 seconds
  28.  
  29. CALL NO_MCGA           ' test for mcga+ monitor
  30.  
  31. MOUSE 0.0              ' mouse is required
  32. JUMP.NO NO_MOUSE
  33.  
  34. FREE 1700              ' if they don't have 1.7 meg free, forget it
  35. JUMP.NO NO_SPACE
  36.  
  37. ' display opening menu
  38. :OPENING
  39.  
  40. WINOPEN 0 4 31
  41. "        INSTALLATION OPTIONS MENU"
  42. ""
  43. "1.  Install as Microsoft Windows 3.1 Application"
  44. "2.  Install as DOS Application"
  45. "3.  QUIT"
  46. ""
  47. "SELECT ONE OF THE ABOVE:    "
  48.  
  49. WINUPDATE +10 +1 30
  50. "INSTALLATION OPTIONS MENU"
  51. INPUT A 1 +28 +7 15
  52. WINCLOSE
  53.  
  54. CALL TEMP_FILE
  55.  
  56. EXIST ~3\1.TMP
  57. JUMP.YES WINDOWS_APP
  58.  
  59. EXIST ~3\2.TMP
  60. JUMP.YES DOS_APP
  61.  
  62. EXIST ~3\3.TMP
  63. JUMP.YES EXIT
  64.  
  65. BEEP
  66. CALL TMP_DEL
  67. JUMP OPENING
  68.  
  69. ' ------------------------
  70. '   install as a dos app
  71. ' ------------------------
  72. :DOS_APP
  73. CALL TMP_DEL
  74.  
  75. ' have user set the drive
  76. CALL ESC
  77. DRIVE C 0 12 31 15 32 14 79
  78. WINCLOSE
  79.  
  80. ' have user set the path
  81. CALL ESC
  82. PATH \WIZARD 0 12 31 15 32 14 79
  83. WINCLOSE
  84.  
  85. CALL EMPTY_DIR
  86. CALL UNPACK
  87.  
  88. ' create color wizard batch file
  89. PROMPT OFF
  90. DELETE ~1\WIZARD.BAT 0 0 0
  91. PROMPT ON
  92. FILE ~1\WIZARD.BAT
  93. "~1"
  94. "cd ~2"
  95. "WIZARD"
  96. "cd \"
  97.  
  98. WINOPEN 0 4 31
  99. "THE COLOR WIZARD has been successfully installed."
  100. ""
  101. "     To run it, enter the command"
  102. "     from the root directory of drive ~1."
  103. ""
  104. ""
  105. ""
  106. ""
  107. "Press the [Enter] key to continue."
  108. WINUPDATE +36 +3 30
  109. "WIZARD"
  110. WINUPDATE +7 +6 27
  111. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  112. WAIT +36 +9
  113. WINCLOSE
  114.  
  115. :RUN
  116. WINOPEN 0 10 31
  117. "Would you like to run THE COLOR WIZARD right now   Y or N?"
  118. ASK +60 +1
  119. JUMP.NO EXIT
  120. RUN ~1\WIZARD.BAT
  121.  
  122. ' --------------------------
  123. '   install as windows app
  124. ' --------------------------
  125. :WINDOWS_APP
  126.  
  127. ' these commands set drive and path variables
  128. DRIVE C
  129. PATH \WINDOWS
  130.  
  131. :TEST_WIN
  132. EXIST ~1~2\WIN.COM
  133. JUMP.YES WIN_INSTALL
  134.  
  135. EXIST ~3\1.TMP
  136. JUMP.YES SKIP_BEEP
  137. BEEP
  138. RD ~1~2
  139. WINOPEN 0 4 79
  140. "Microsoft Windows is NOT found in the"
  141. "~1~2 directory.  Please try again."
  142. ""
  143. "Press ENTER to continue."
  144. WAIT +26 +4
  145. WINCLOSE
  146.  
  147. ' windows is in a directory other than C:\WINDOWS
  148. :SKIP_BEEP
  149. CALL TMP_DEL
  150. WINOPEN 0 4 31
  151. "To install THE COLOR WIZARD to Microsoft Windows,"
  152. "we need to know which hard drive Windows is installed on."
  153. ""
  154. "             Most people have Windows on this hard drive."
  155. "             Press ENTER if this is correct, or change to"
  156. "             the correct drive letter."
  157. "             (Press ESC to quit.)"
  158. PROMPT OFF
  159. DRIVE C +2 +3 17 14 32 14 79
  160. WINCLOSE
  161.  
  162. PROMPT ON
  163. WINOPEN 0 4 31
  164. "We also need to know the name of the directory where Microsoft"
  165. "Windows is installed.  Most people have Windows installed in"
  166. "                              this directory.  Press ENTER"
  167. "                              if this is OK, or input the name"
  168. "                              of the directory where Windows"
  169. "                              is installed."
  170. "                              (Press ESC to quit.)"
  171. PROMPT OFF
  172. PATH \WINDOWS +1 +3 17 14 32 14 79
  173. WINCLOSE
  174. PROMPT ON
  175. PROMPT OFF
  176. JUMP TEST_WIN
  177.  
  178. ' you know the windows directory, now install it
  179. :WIN_INSTALL
  180. CALL TMP_DEL
  181.  
  182. FILE ~1~2\PROGMAN.INI
  183. "Group510=~1\WIZARD\WIZARD.GRP"
  184.  
  185. PATH \WIZARD
  186. MD ~1~2
  187.  
  188. CALL EMPTY_DIR
  189.  
  190. CALL UNPACK
  191.  
  192. UNPACK WINDOWS.PAK 0 12 31 32 15 79 ' windows pif, ico, and grp files
  193. JUMP.FAIL INSTALL_FAILURE
  194.  
  195.  
  196. ' --------------------------------
  197. '  successful install to windows
  198. ' --------------------------------
  199. WINOPEN 0 4 31
  200. "THE COLOR WIZARD has been installed in your Windows environment"
  201. "in the ~1~2 directory.  However, these changes won't"
  202. "take effect until you exit Windows, then run Windows again."
  203. ""
  204. ""
  205. ""
  206. "Press ENTER to return to Windows."
  207. WINUPDATE +12 +5 27
  208. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  209. WAIT +35 +7
  210. WINCLOSE
  211. END
  212.  
  213. ' ------------------
  214. '   error messages
  215. ' ------------------
  216. :INSTALL_FAILURE
  217. BEEP
  218. WINOPEN 0 4 79
  219. "THE COLOR WIZARD INSTALLATION FAILED BEFORE IT FINISHED!!"
  220. ""
  221. "Possible reasons:"
  222. "   -- The floppy disk was damaged during shipping."
  223. "   -- Your disk drive is out of alignment."
  224. ""
  225. "You may want to delete the files in the ~1~2 directory."
  226. ""
  227. "      Press [Enter] to Quit."
  228. WAIT +30 +9
  229. WINCLOSE
  230. JUMP EXIT
  231.  
  232. ' -----------
  233. ' subroutines
  234. ' -----------
  235. :EMPTY_DIR
  236. EXIST ~1~2\*.*                 ' brand new directory
  237. JUMP.NO SKIP_DEL
  238.  
  239. EXIST ~1~2\WIZARD.EXE          ' existing color wizard software
  240. JUMP.YES SKIP_DEL
  241.  
  242. WINOPEN 0 4 79
  243. "The directory ~1~2 already exists and contains files!"
  244. ""
  245. "   You will have to DELETE ALL THE FILES in this"
  246. "   directory prior to installing in here."
  247. ""
  248. "Press ENTER to Continue."
  249. WAIT +25 +6
  250. WINCLOSE
  251. JUMP OPENING
  252.  
  253. :SKIP_DEL
  254. RETURN
  255.  
  256. ' unpack data files
  257. :UNPACK
  258.  
  259. SET.FILES 16
  260.  
  261. COPY ~0\READ.ME ~1\~2\READ.ME 0 12 31
  262.  
  263. WINOPEN 0 20 47
  264. " Press the ARTIST icon for a lesson from our professional artists. "
  265.  
  266. UNPACK WIZARD.PAK 0 12 31 32 15 79          ' main program
  267. JUMP.FAIL INSTALL_FAILURE
  268.  
  269. WINUPDATE +2 +1 47
  270. " Now installing the DINOSAUR coloring book . . .                   "
  271. UNPACK DINO.PAK 0 12 31 32 15 79
  272. JUMP.FAIL INSTALL_FAILURE
  273.  
  274. WINUPDATE +2 +1 47
  275. " Now installing the SHARKS coloring book . . .  "
  276. UNPACK SHARKS.PAK 0 12 31 32 15 79
  277. JUMP.FAIL INSTALL_FAILURE
  278.  
  279. WINUPDATE +2 +1 47
  280. " Press the BOOK icon to read the story of Rapunzel . . ."
  281. UNPACK RAPUN.PAK 0 12 31 32 15 79
  282. JUMP.FAIL INSTALL_FAILURE
  283.  
  284. WINCLOSE
  285.  
  286. :INSERT_DISK                  ' prompt for 2nd disk (if necessary)
  287. EXIST ~0\AESOP.PAK
  288. JUMP.YES SKIP_DISK
  289.  
  290. BEEP
  291. WINOPEN 0 11 79
  292. ""
  293. "  Please Insert Disk #2 in Drive ~0  "
  294. ""
  295. "  Press ENTER when ready . . ."
  296. ""
  297. WAIT +32 +4
  298. WINCLOSE
  299. EXIST ~0\AESOP.PAK
  300. JUMP.NO INSERT_DISK
  301.  
  302. :SKIP_DISK
  303.  
  304. WINOPEN 0 20 47
  305. " Installing the 2,000 year old classic AESOP'S Fables . . .        "
  306. UNPACK AESOP.PAK 0 12 31 32 15 79
  307. JUMP.FAIL INSTALL_FAILURE
  308.  
  309. WINCLOSE
  310.  
  311. RETURN
  312.  
  313. ' create a temporary file in the default directory with a unique name based on the number input by the user
  314. :TEMP_FILE
  315. FILE ~3\~A.TMP
  316. "Delete this temporary file."
  317. RETURN
  318.  
  319. ' delete temporary file created by opening menu
  320. :TMP_DEL
  321. PROMPT OFF
  322. DELETE ~3\~A.TMP 0 0 0
  323. PROMPT ON
  324. RETURN
  325.  
  326. :ESC
  327. WINOPEN 0 20 31
  328. "(Press ESC to Quit) "
  329. RETURN
  330.  
  331. :NO_MCGA
  332. VIDEO MCGA             ' vga monitor is required
  333. JUMP.YES SKIP_VGA
  334. WINOPEN 0 4 79
  335. "This software requires a VGA monitor to run."
  336. "It probably won't run on your computer.  Do"
  337. "you want to install it anyway        Y or N?"
  338. ASK +39 +3
  339. JUMP.YES SKIP_VGA
  340. JUMP EXIT
  341. :SKIP_VGA
  342. RETURN
  343.  
  344. :NO_MOUSE
  345. WINOPEN 0 4 79
  346. "Sorry, but this software requires a mouse to run, and"
  347. "therefore, it won't currently run on your computer. If"
  348. "you have a mouse, make sure that your mouse driver is"
  349. "loaded in AUTOEXEC.BAT or CONFIG.SYS as explained in"
  350. "the documentation which came with your mouse."
  351. ""
  352. "Press ENTER to continue."
  353. WAIT +26 +7
  354. JUMP EXIT
  355.  
  356. :NO_SPACE
  357. WINOPEN 0 4 79
  358. "This software requires at least 1.7 megabytes of free"
  359. "hard disk space before you can can install it."
  360. ""
  361. "Press ENTER to continue."
  362. WAIT +26 +4
  363. JUMP EXIT
  364.  
  365. :EXIT
  366. CALL TMP_DEL
  367. END
  368.